package com.hxx.dao;

import com.hxx.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    SysUser  getUserByUsernameAndPwd(SysUser sysUser);

    SysUser  getUserByUsername(String username);
    List<SysUser> getAllUsers(@Param("username") String username);

    SysUser getUserById (@Param("id") Integer id);

    int addUser (SysUser sysUser);

    int editUser (SysUser sysUser);

    int deleteUserById (@Param("id") Integer id);

    int deleteUserAll(@Param("ids") List<String> ids);

    int editPassword (@Param("id") Integer id,@Param("password") String password);

    SysUser findById(@Param("id")Integer id);
}